Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broken stream when authentication failed #260

Merged
merged 6 commits into from
Jul 19, 2022

Conversation

RolandMa1986
Copy link
Contributor

PR Type

Bug Fix

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the nightly rustfmt (cargo +nightly fmt).

Overview

The handler's signature has been changed. I'm not sure whether it's acceptable. Please let me known it there's a better solution.

Signed-off-by: Roland Ma <rolandma@outlook.com>
Signed-off-by: Roland Ma <rolandma@outlook.com>
@robjtede robjtede added A-httpauth Project: actix-web-httpauth B-semver-major breaking change requiring a major version bump labels Jul 15, 2022
@robjtede robjtede requested a review from a team July 15, 2022 13:41
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible, +1

@RolandMa1986
Copy link
Contributor Author

I don't see any relations between the commit and the failing doc tests. How do i to fix it?

@JohnTitor
Copy link
Member

Due to rust-lang/rust#99261, let's ignore it for now.

Copy link
Member

@robjtede robjtede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change seems fine, no better way to do it with the current middleware system so worth providing a solution instead of none

@robjtede robjtede merged commit 417c06b into actix:master Jul 19, 2022
@jacob-pro
Copy link

this is a neat way of solving the bug within the current constraints - thank you @RolandMa1986

@robjtede robjtede linked an issue Jul 19, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-httpauth Project: actix-web-httpauth B-semver-major breaking change requiring a major version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conflict between HttpAuthentication::bearer and actix-cors
4 participants